package org.huangrui.service;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.UserMessage;

/**
 * @Author hr
 * @Create 2025-11-09 14:11
 **/
public interface ChatMemoryAssistant {
    /**
     * 聊天带记忆缓存功能
     * @param userId  用户 ID
     * @param prompt 消息
     * @return {@link String }
     */
    String chatWithChatMemory(@MemoryId Long userId, @UserMessage String prompt);
}
